<?php

namespace app\admin\controller;

use think\Controller;
use \think\Db;
use \think\Config;
use \think\Session;
use think\config\driver\Json;
use \think\Request;

/**
 * @writer:zh
 * @DateTime:1018-1-24
 * @rewriter:xx
 * @rewriter_date:YY-MM-DD
 * @description:运营后台页面
 * @param:
 * @return [$result]
 */
class Index extends Common
{
    //首页
    public function login()
    {
        return view(APP_PATH . request()->module() . '/view/index/login.html');
    }

    //首页
    public function index()
    {
        $user_info = Session::get('user_info');
        $this->assign('user_info',$user_info);
        return view(APP_PATH . request()->module() . '/view/index/index.html');
    }

    //统计页面
    public function statistics()
    {
        return view(APP_PATH . request()->module() . '/view/statistics.html');
    }

    //商家协议
    public function orderList()
    {
        return view(APP_PATH . request()->module() . '/view/orderManage.html');
    }

    //用户管理页面
    public function userManage()
    {
        return view(APP_PATH . request()->module() . '/view/userManage.html');
    }

    //供应商管理
    public function suppliesManage()
    {
        return view(APP_PATH . request()->module() . '/view/supplies/suppliesManage.html');
    }

    //申请认证商家
    public function suppliesCertified()
    {
        return view(APP_PATH . request()->module() . '/view/supplies/suppliesCertified.html');
    }
    //优惠卷管理
    public function suppliesDiscount()
    {
        return view(APP_PATH . request()->module() . '/view/supplies/suppliesDiscount.html');
    }
    //商品列表
    public function productManage()
    {
        return view(APP_PATH . request()->module() . '/view/product/productManage.html');
    }

    //待审核商品
    public function productCheck()
    {
        return view(APP_PATH . request()->module() . '/view/product/productCheck.html');
    }

    //商品分类维护
    public function productCategory()
    {
        return view(APP_PATH . request()->module() . '/view/operation/productCategory.html');
    }
     //商品分类维护
    public function orderManage()
    {
        return view(APP_PATH . request()->module() . '/view/orderManage.html');
    }


    //消息推送
    public function pushMessage()
    {
        return view(APP_PATH . request()->module() . '/view/operation/pushMessage.html');
    }

    //用户协议
    public function userAgreement()
    {
        return view(APP_PATH . request()->module() . '/view/systemSetting/userAgreement.html');
    }

    //商家协议
    public function suppliesAgreement()
    {
        return view(APP_PATH . request()->module() . '/view/systemSetting/suppliesAgreement.html');
    }

    //关于我们
    public function aboutAgreement()
    {
        return view(APP_PATH . request()->module() . '/view/systemSetting/aboutAgreement.html');
    }

    //功能介绍
    public function funAgreement()
    {
        return view(APP_PATH . request()->module() . '/view/systemSetting/funAgreement.html');
    }

    //轮播图
    public function carousel()
    {
        return view(APP_PATH . request()->module() . '/view/operation/carousel.html');
    }

    //轮播图
    public function setting()
    {
        return view(APP_PATH . request()->module() . '/view/systemSetting/setting.html');
    }
    //意见反馈
    public function feedback()
    {
        return view(APP_PATH . request()->module() . '/view/operation/feedback.html');
    }
    //常见问题
    public function faq()
    {
        return view(APP_PATH . request()->module() . '/view/operation/faq.html');
    }
    //常见问题类型
    public function faqType()
    {
        return view(APP_PATH . request()->module() . '/view/operation/faqType.html');
    }
    //常见问题详情
    public function faqInfo()
    {
        return view(APP_PATH . request()->module() . '/view/operation/faqInfo.html');
    }
    // 用户投诉
    public function userComplaint(){
        return view(APP_PATH . request()->module() . '/view/operation/userComplaint.html');
    }
}
